import request from "../utils/request";

function login(data) {
    return request.post("/api/loginpc", data);
}

function getUserInfo(data) {
    return request.post("/api/userInfo", data);
}

function getOneCifyData(data) {
    return request.post("/api/allcity", data);
}

function getTwoCifyData(data) {
    return request.post("/api/twocity", data);
}

function page(data) {
    return request.post("/api/page", data);
}

function getGroupList(data) {
    return request.post("/api/getGroupList", data);
}

function getLiveList(data) {
    return request.post("/api/getLiveList", data);
}

function searchLiveList(data) {
    return request.post("/api/searchLiveList", data);
}

function addHouseList(data) {
    return request.post("/api/addHouseList", data);
}

function delHouseList(data) {
    return request.post("/api/delHouseList", data);
}

function getnewoldhouse(data) {
    return request.post("/api/getnewoldhouse", data);
}

// 删除审核数据
function delnewoldhouse(data) {
    return request.post("/api/delnewoldhouse", data);
}

// 房源模糊搜索
function searchHouseList(data) {
    return request.post("/api/searchHouseList", data);
}

// 团购模糊搜索
function searchGroupList(data) {
    return request.post("/api/searchGroupList", data);
}

// 审核模糊搜索
function searchOldList(data) {
    return request.post("/api/searchOldList", data);
}

// 删除直播
function delLiveList(data) {
    return request.post("/api/delLiveList", data);
}

function searchHouseCityList(data) {
    return request.post("/api/searchHouseCityList", data);
}

// 获取pc所有端登录人员的信息
function getAllUserName() {
    return request.post("/api/getAllUserInfo");
}

// 用户信息
function userInfo() {
    return request.post("/api/user");
}

// 获取订单管理数据
function getDingdan(data) {
    return request.post("/api/ddList", data);
}

// 获取所有用户信息
function getAllUser() {
    return request.post("/api/userList");
}
// 获取所有用户信息
function setUserAuth(data) {
    return request.post("/api/userAuth", data);
}
export {
    login,
    getUserInfo,
    getOneCifyData,
    getTwoCifyData,
    page,
    getGroupList,
    getLiveList,
    searchLiveList,
    addHouseList,
    delHouseList,
    getnewoldhouse,
    delnewoldhouse,
    searchHouseList,
    searchGroupList,
    searchOldList,
    delLiveList,
    searchHouseCityList,
    getAllUserName,
    userInfo,
    getDingdan,
    getAllUser,
    setUserAuth,
};